/**
 * 登录
 */
export const rules = {
  name: [
    { required: true, message: "请填写用户名", trigger: "blur" },
    {
      min: 3,
      max: 10,
      message: "用户名长度在3-5个字符",
      trigger: "blur",
    },
  ],
  password: [
    { required: true, message: "请填写密码", trigger: "blur" },
    {
      min: 6,
      max: 10,
      message: "密码长度在6-10个字符",
      trigger: "blur",
    },
  ],
};

export class LoginDTO {
  name = "";

  password = "";
}
/**
 * 注册
 */

export const rulesRegistry = {
  name: [
    { required: true, message: "请填写用户名", trigger: "blur" },
    {
      min: 3,
      max: 10,
      message: "用户名长度在3-5个字符",
      trigger: "blur",
    },
  ],
  password: [
    { required: true, message: "请填写确认密码", trigger: "blur" },
    {
      min: 6,
      max: 10,
      message: "密码长度在6-10个字符",
      trigger: "blur",
    },
  ],
};

export class RegistryDTO {
  name = "";
  password = "";
  confirmPassword = "";
}
